﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using Freeform;



namespace Space_in_Shaders
{
    public class FloatingText : Fader
    {
        public Actor_Text2D TextActor { get; set; }
        public NMotion NMot { get; set; }

        public FloatingText(SpaceWorld World, String Text, Vector2 Position, Vector2 Velocity, Int32 LifeTime)
            : base(World, LifeTime)
        {
            TextActor = new Actor_Text2D(this, Text, Game.Content.Load<SpriteFont>("Fonts/Floating"));
            TextActor.UseNaturalFontSize = true;
            TextActor.NaturalFontScaling = Vector2.One * 0.4f;

            SpatialProperties.Position = Position;

            NMot = new NMotion(SpatialProperties);
            NMot.Velocity = Velocity;
            NMot.ForceResistance = 0.98f;

            StartColour = Color.Green;
        }
    }
}
